<template>
	<view>
		<view class="img">
			<image src="../../static/login.png" mode=""></image>
		</view>

		<view class="btn">
			<u-button @click="show = true" text="微信一键登录"
				color="linear-gradient(to bottom, rgb(29, 45, 167), rgb(95, 114, 253))">
			</u-button>
		</view>

		<view class="view-phone">
			<view class="view-check">
				<u-checkbox-group>
					<u-checkbox v-model="checked" shape="circle"></u-checkbox>
				</u-checkbox-group>
				勾选即代表同意<text @click="uni.navigateTo({
							url:''
						})">《用户注册协议》</text>和<text @click="uni.navigateTo({
							url:''
						})">《隐私协议》</text>
			</view>
		</view>

		<view class="view-grid">
			<view class="view-item" @click="skipZh()">
				<image src="../../static/zhanghaomima.png"></image>
				<text>账号密码</text>
			</view>
			<view class="view-item" @click="skipSj()">
				<image src="../../static/shoujihao.png"></image>
				<text>手机号码</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				checked: ''
			}
		},

		methods: {
			checkboxChange(n) {
				console.log(n.length);
				this.checkBox = n.length
			},
			skipZh(){
				uni.navigateTo({
					url:'../account-password/account-password'
				})
			},
			skipSj(){
				uni.navigateTo({
					url:'../cell-phone-number/cell-phone-number'
				})
			}
		}
	}
</script>

<style lang="scss">
	.img {
		width: 274rpx;
		height: 210rpx;
		margin: auto;
		margin-top: 60rpx;

		image {
			width: 274rpx;
			height: 210rpx;
		}
	}

	.btn {
		width: 75%;
		height: 100%;
		margin: auto;
		margin-top: 150rpx;
	}

	.view-phone {

		text {
			// margin-left: 10rpx;
			color: #4B9AFF;
			text-decoration: none;
		}
	}

	.view-check {
		width: 100%;
		font-size: 24rpx;
		color: #999999;
		display: flex;
		align-items: center;
		justify-content: center;
		margin-top: 30rpx;

		image {
			width: 31rpx;
			height: 31rpx;
			margin-right: 14rpx;
		}

		a {
			text-decoration: none;
			color: #4B9AFF;
		}
	}

	.view-grid {
		width: 80%;
		margin: auto;
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-end;
		justify-content: center;
		justify-content: space-between;
		justify-content: space-around;
		margin-top: 360rpx;

		.view-item {
			width: 20%;
			display: flex;
			flex-direction: column;
			align-items: center;
			padding-top: 30rpx;

			image {
				width: 46rpx;
				height: 46rpx;
			}

			text {
				margin-top: 15rpx;
				font-size: 26rpx;
				font-weight: 400;
				color: #000000;
			}
		}
	}
</style>
